﻿using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse.Grammar;
using Verse;

namespace RimZombieGirl
{
    public class ReadingOutcomeDoer_GainAbilityLimitedSkill : BookOutcomeDoer
    {
        public new BookOutcomeProperties_GainAbilityLimitedSkill Props
        {
            get
            {
                return (BookOutcomeProperties_GainAbilityLimitedSkill)this.props;
            }
        }

        public new Book_AbilityLimitSkill Book
        {
            get
            {
                return (Book_AbilityLimitSkill)base.Parent;
            }
        }

        public override bool DoesProvidesOutcome(Pawn reader)
        {
            return false;
        }

        public override void OnBookGenerated(Pawn author = null)
        {
            this.Book.psycast = Props.abilityDef;
            this.Book.skillLevelsLimit = Props.skillLevelLimit;
            this.Book.skillDef = Props.skillDef;
        }

        public override string GetBenefitsString(Pawn reader = null)
        {
            return "RI_CurseCureUnlock".Translate(this.Book.psycast.LabelCap,this.Book.skillLevelsLimit);//todo 记得改下文本
        }

        
    }
}
